<?php

/* ------------------------------------------------------------------------------------------------------------------------------------------------------ */

	function create_tabs( $current = 'general' )
	{
		$tabs = array(  'general' => 'General',
						'style' => 'Style',
						'seo' => 'SEO',
						'home' => 'Home',
						'blog' => 'Blog',
						'social-media' => 'Social Media',
						'contact' => 'Contact',
						'sidebar' => 'Sidebar' );
						
		?>
		
			<h2 class="nav-tab-wrapper">
			
				<div id="icon-options-general" class="icon32"></div>
			
				<div><h2>Theme Settings</h2></div>
		
				<?php
				
					foreach ( $tabs as $tab => $name )
					{
						$class = ( $tab == $current ) ? ' nav-tab-active' : '';
						
						echo "<a class='nav-tab$class' href='?page=theme-settings&tab=$tab'>$name</a>";
						
					}
				
				?>
		
			</h2>
		
		<?php
	
	}
	// end create_tabs

/* ------------------------------------------------------------------------------------------------------------------------------------------------------ */

	function theme_settings_page()
	{
		global $pagenow;
		
	?>
		<div class="wrap wrap2">
		
			<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
			
			<script src="<?php echo get_template_directory_uri(); ?>/admin/colorpicker/js/colorpicker.js"></script>
			
			<div class="status"><img alt="" src="<?php echo get_template_directory_uri(); ?>/admin/ajax-loader.gif" /><strong></strong></div>
			
			<script>
			
				// jQuery
				$(function()
				{
				
				// -------------------------------------------------------------------------
				
					var uploadID = '',
						uploadImg = '';

					jQuery( '.upload-button' ).click(function()
					{
						uploadID = jQuery(this).prev( 'input' );
						uploadImg = jQuery(this).next( 'img' );
						formfield = jQuery( '.upload' ).attr( 'name' );
						tb_show('', 'media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true');
						return false;
					});

					window.send_to_editor = function( html )
					{
						imgurl = jQuery( 'img', html ).attr( 'src' );
						uploadID.val( imgurl );
						uploadImg.attr('src', imgurl);
						tb_remove();
					}
				
				// -------------------------------------------------------------------------
				
					$(".alert-success p").click(function()
					{
						$(this).fadeOut("slow", function()
						{
							$(".alert-success").slideUp("slow");
						});
					});
				
				// -------------------------------------------------------------------------
				
					$( '#site_text_color, #site_background_color, #site_link_color, #site_link_hover_color, #site_link_hover_bg_color, #text_selection_color, #text_selection_bg_color, #social_media_hover_color, #header_border_color, #tagline_border_color, #footer_border_color, #header_background_color, #footer_background_color' ).ColorPicker(
					{
						onSubmit: function(hsb, hex, rgb, el)
						{
							$(el).val(hex);
							$(el).ColorPickerHide();
						},
						onBeforeShow: function ()
						{
							$(this).ColorPickerSetColor(this.value);
						}
					})
					.bind('keyup', function()
					{
						$(this).ColorPickerSetColor(this.value);
					});
				
				// -------------------------------------------------------------------------
				
					var action = 'http://127.0.0.1/test-responsy/wp-admin/admin.php?page=theme-settings';

					//$('.button-primary').click(function() {
					
					$( 'form.ajax-form' ).submit(function()
					{
						$.ajax({
						  //url: action,
						  data : $(this).serialize(),
						  type: "POST",
						  beforeSend: function() {
						    $('.status img').show();
							$('.status strong').html('Saving...');
							$('.status').fadeIn();
						  },
						  success: function(data) {
							//$('.result').html(data);
							//alert('Settings saved');
							$('.status img').hide();
							$('.status strong').html('Done.');
							$('.status').delay(1000).fadeOut();
						  }
						});
						
						return false;
						
					});
				
				// -------------------------------------------------------------------------
				
					/*
					
					var calcHeight = function()
					{
						$( "#preview-frame" ).height($(window).height() - 100);
					}

					$(document).ready(function()
					{
						calcHeight();
					});

					$(window).resize(function()
					{
						calcHeight();
						
					}).load(function()
					{
						calcHeight();
					});
					
					*/
				
				// -------------------------------------------------------------------------
				
				});
				// end document.ready
				
			</script>
			
			<?php
				
				if ( isset( $_GET['tab'] ) )
				{
					create_tabs( $_GET['tab'] );
				}	
				else
				{
					create_tabs( 'general' );
				}
				
			?>

			<div id="poststuff">
				
				<?php
				
					// settings page
					if ( $pagenow == 'admin.php' && $_GET['page'] == 'theme-settings' )
					{
						// tab from url
						if ( isset( $_GET['tab'] ) )
						{
							$tab = $_GET['tab'];
						}
						else
						{
							$tab = 'general'; 
						}
						// end tab from url
						
						// tab content
						switch ( $tab )
						{
							case 'general' :
							
								$image_logo = get_option( 'image_logo' );
								$use_original_size_of_logo = get_option( 'use_original_size_of_logo' );
								
								$text_logo = get_option( 'text_logo' );
								$enable_text_logo = get_option( 'enable_text_logo' );
								
								$text_slogan = get_option( 'text_slogan' );
								$enable_text_slogan = get_option( 'enable_text_slogan' );
								
								$login_logo = get_option( 'login_logo' );
								$hide_login_logo = get_option( 'hide_login_logo' );
								
								$favicon = get_option( 'favicon' );
								$apple_touch_icon = get_option( 'apple_touch_icon' );
								
								$site_background_image = get_option( 'site_background_image' );
								$header_background_image = get_option( 'header_background_image' );
								$footer_background_image = get_option( 'footer_background_image' );
								$copyright_text = get_option( 'copyright_text' );
							
								if ( esc_attr( @$_GET['saved'] ) == 'true' )
								{
									echo '<div class="alert-success" title="Click to close"><p><strong>Settings saved.</strong></p></div>';
								}
								
								?>
								
								<div class="postbox">
								
									<div class="inside">
									
										<form method="post" action="<?php admin_url( 'admin.php?page=theme-settings' ); ?>" class="ajax-form">
										
											<?php
											
												wp_nonce_field( "settings-page" );
											
											?>
											
											<table>
											
												<tr>
													<td class="option-left">
														
														<h4>Logo</h4>
														
														<input type="text" id="image_logo" name="image_logo" class="upload code2" style="width: 100%;" value="<?php echo $image_logo; ?>" />
														
														<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
													
														<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $image_logo; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Upload a logo or specify an image address of your online logo. <span class="code2">(http://example.com/logo.png)</span>
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<label>
														
															<input type="checkbox" id="use_original_size_of_logo" name="use_original_size_of_logo" <?php if ( $use_original_size_of_logo ) { echo 'checked="checked"'; } ?> value="use_original_size_of_logo" /> Use Original Dimension Of Logo
															
														</label>
														
													</td>
													
													<td class="option-right">
													
														Use original size of logo.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<h4>Plain Text Logo</h4>
														
														<input type="text" id="text_logo" name="text_logo" style="width: 100%;" value="<?php echo stripcslashes( $text_logo ); ?>" />
														
													</td>
													
													<td class="option-right">
													
														Use a plain text logo rather than an image.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<label>
														
															<input type="checkbox" id="enable_text_logo" name="enable_text_logo" <?php if ( $enable_text_logo ) { echo 'checked="checked"'; } ?> value="enable_text_logo" /> Enable Plain Text Logo
														
														</label>
														
													</td>
													
													<td class="option-right">
													
														Enable plain text logo.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<h4>Plain Text Slogan</h4>
														
														<input type="text" id="text_slogan" name="text_slogan" style="width: 100%;" value="<?php echo stripcslashes( $text_slogan ); ?>" />
													
													</td>
													
													<td class="option-right">
													
														Add a plain text slogan below of the plain text logo.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<label>
														
															<input type="checkbox" id="enable_text_slogan" name="enable_text_slogan" <?php if ($enable_text_slogan) { echo 'checked="checked"'; } ?> value="enable_text_slogan" /> Enable Plain Text Slogan
														
														</label>
														
													</td>
													
													<td class="option-right">
													
														Enable plain text slogan.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<h4>Login Logo</h4>
														
														<input type="text" id="login_logo" name="login_logo" class="upload code2" style="width: 100%;" value="<?php echo $login_logo; ?>" />
														
														<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
														
														<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $login_logo; ?>" />
														
													</td>
													
													<td class="option-right">
													
														The logo on the WordPress login screen. Upload an image or hide the default WordPress logo. Recommended 63px height and png format.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<label>
														
															<input type="checkbox" id="hide_login_logo" name="hide_login_logo" <?php if ( $hide_login_logo ) { echo 'checked="checked"'; } ?> value="hide_login_logo" /> Disable Login Logo
														
														</label>
														
													</td>
													
													<td class="option-right">
													
														Disable login logo.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<h4>Favicon</h4>
														
														<input type="text" id="favicon" name="favicon" class="upload code2" style="width: 100%;" value="<?php echo $favicon; ?>" />
														
														<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload" />
														
														<img style="margin-top: 10px; max-height: 16px;" align="right" alt="" src="<?php echo $favicon; ?>" />
														
													</td>
													
													<td class="option-right">
													
														Upload a (16x16)px png/gif/ico image that will represent your website's favicon.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<h4>Apple Touch Icon</h4>
														
														<input type="text" id="apple_touch_icon" name="apple_touch_icon" class="upload code2" style="width: 100%;" value="<?php echo $apple_touch_icon; ?>" />
														
														<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
														
														<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $apple_touch_icon; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Upload a minimum (144x144)px PNG image that will represent your website's favicon for Apple devices such as the iPod Touch, iPhone and iPad, as well as some Android devices.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<h4>Background Image</h4>
														
														<input type="text" id="site_background_image" name="site_background_image" class="upload code2" style="width: 100%;" value="<?php echo $site_background_image; ?>" />
														
														<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
														
														<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $site_background_image; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Upload an image for site background.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<h4>Header Background Image</h4>
														
														<input type="text" id="header_background_image" name="header_background_image" class="upload code2" style="width: 100%;" value="<?php echo $header_background_image; ?>" />
														
														<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
														
														<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $header_background_image; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Upload an image for header background.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<h4>Footer Background Image</h4>
														
														<input type="text" id="footer_background_image" name="footer_background_image" class="upload code2" style="width: 100%;" value="<?php echo $footer_background_image; ?>" />
														
														<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
														
														<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $footer_background_image; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Upload an image for footer background.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Copyright Text</h4>
														
														<textarea id="copyright_text" name="copyright_text" style="outline: none; width: 100%;" rows="4" cols="50"><?php echo stripcslashes( $copyright_text ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Insert your copyright text to display in the footer.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
															<input type="submit" name="submit" class="button-primary" value="Save Settings" />
															
															<input type="hidden" name="settings-submit" value="Y" />
														
													</td>
													
													<td class="option-right">
													
														Save changes.
														
													</td>
												</tr>
												
											</table>
											
										</form>
										
									</div>
									<!-- end .inside -->
									
								</div>
								<!-- end .postbox -->
								
							<?php
							
							break;
								
							case 'style' :
							
								$theme_style = get_option( 'theme_style' );
								
								$site_background_color = get_option( 'site_background_color' );
								$header_background_color = get_option( 'header_background_color' );
								$footer_background_color = get_option( 'footer_background_color' );

								$site_text_color = get_option( 'site_text_color' );
								
								$site_link_color = get_option( 'site_link_color' );
								$site_link_hover_color = get_option( 'site_link_hover_color' );
								$site_link_hover_bg_color = get_option( 'site_link_hover_bg_color' );
								
								$text_selection_color = get_option( 'text_selection_color' );
								$text_selection_bg_color = get_option( 'text_selection_bg_color' );
								
								$social_media_hover_color = get_option( 'social_media_hover_color' );
								$header_border_color = get_option( 'header_border_color' );
								$tagline_border_color = get_option( 'tagline_border_color' );
								$footer_border_color = get_option( 'footer_border_color' );
								
								$launch_project_button_color = get_option( 'launch_project_button_color' );
								$hide_gallery_arrows = get_option( 'hide_gallery_arrows' );
								$disable_gototop_link = get_option( 'disable_gototop_link' );
								
								$crop_width_portfolio_page = get_option( 'crop_width_portfolio_page' );
								$crop_height_portfolio_page = get_option( 'crop_height_portfolio_page' );
								$no_crop_portfolio_page = get_option( 'no_crop_portfolio_page' );
								
								$crop_width_latest_projects = get_option( 'crop_width_latest_projects' );
								$crop_height_latest_projects = get_option( 'crop_height_latest_projects' );
								$no_crop_latest_projects = get_option( 'no_crop_latest_projects' );
								
								$crop_width_latest_posts = get_option( 'crop_width_latest_posts' );
								$crop_height_latest_posts = get_option( 'crop_height_latest_posts' );
								$no_crop_latest_posts = get_option( 'no_crop_latest_posts' );
								
								$crop_width_blog_page = get_option( 'crop_width_blog_page' );
								$crop_height_blog_page = get_option( 'crop_height_blog_page' );
								$no_crop_blog_page = get_option( 'no_crop_blog_page' );
								
								$crop_width_blog_page2 = get_option( 'crop_width_blog_page2' );
								$crop_height_blog_page2 = get_option( 'crop_height_blog_page2' );
								$no_crop_blog_page2 = get_option( 'no_crop_blog_page2' );
								
								$back_to_portfolio = get_option( 'back_to_portfolio' );
								
								$see_project_details_text = get_option( 'see_project_details_text' );
								
								$custom_css = get_option( 'custom_css' );
								$external_css = get_option( 'external_css' );
								
								if ( esc_attr( @$_GET['saved'] ) == 'true' )
								{
									echo '<div class="alert-success" title="Click to close"><p><strong>Settings saved.</strong></p></div>';
								}
							?>
								<div class="postbox">
								
									<div class="inside">
									
										<form method="post" action="<?php admin_url( 'admin.php?page=theme-settings' ); ?>" class="ajax-form">
										
											<?php wp_nonce_field( "settings-page" ); ?>
											
											<table>
											
												<tr>
													<td class="option-left">
														
														<h4>Select Style</h4>
														
														<select id="theme_style" name="theme_style" style="width: 100%;">
														
															<option <?php if ( $theme_style == "Light" ) { echo 'selected="selected"'; } ?>>Light</option>
															
															<option <?php if ( $theme_style == "Dark" ) { echo 'selected="selected"'; } ?>>Dark</option>
															
															<option <?php if ( $theme_style == "Clean" ) { echo 'selected="selected"'; } ?>>Clean</option>
															
														</select>
														
													</td>
													
													<td class="option-right">
													
														Select light, dark or clean style type for the theme.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Background Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="site_background_color" name="site_background_color" maxlength="6" size="6" value="<?php echo stripcslashes( $site_background_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $site_background_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select site background color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Header Background Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="header_background_color" name="header_background_color" maxlength="6" size="6" value="<?php echo stripcslashes( $header_background_color ); ?>" />
														
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $header_background_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select header background color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Footer Background Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="footer_background_color" name="footer_background_color" maxlength="6" size="6" value="<?php echo stripcslashes( $footer_background_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $footer_background_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select footer background color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Text Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="site_text_color" name="site_text_color" maxlength="6" size="6" value="<?php echo stripcslashes( $site_text_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $site_text_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select site text color. Click in the box for a color-picker. Select your color then click color-picker button in the right bottom side of the color-picker window.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Link Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="site_link_color" name="site_link_color" maxlength="6" size="6" value="<?php echo stripcslashes( $site_link_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $site_link_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select site link color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Link Hover Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="site_link_hover_color" name="site_link_hover_color" maxlength="6" size="6" value="<?php echo stripcslashes( $site_link_hover_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $site_link_hover_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select site link hover color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Link Hover Background Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="site_link_hover_bg_color" name="site_link_hover_bg_color" maxlength="6" size="6" value="<?php echo stripcslashes( $site_link_hover_bg_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $site_link_hover_bg_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select site link hover background color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Text Selection Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="text_selection_color" name="text_selection_color" maxlength="6" size="6" value="<?php echo stripcslashes( $text_selection_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $text_selection_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select text selection color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Text Selection Background Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="text_selection_bg_color" name="text_selection_bg_color" maxlength="6" size="6" value="<?php echo stripcslashes( $text_selection_bg_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $text_selection_bg_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select text selection background color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Social Media Icons Hover Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="social_media_hover_color" name="social_media_hover_color" maxlength="6" size="6" value="<?php echo stripcslashes( $social_media_hover_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $social_media_hover_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select social media icons hover color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Header Border Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="header_border_color" name="header_border_color" maxlength="6" size="6" value="<?php echo stripcslashes( $header_border_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $header_border_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select header border color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Tagline Border Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="tagline_border_color" name="tagline_border_color" maxlength="6" size="6" value="<?php echo stripcslashes( $tagline_border_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $tagline_border_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select tagline border color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Footer Border Color</h4>
														
														<span style="display: inline-block; color: #666666;">#</span>
														
														<input type="text" id="footer_border_color" name="footer_border_color" maxlength="6" size="6" value="<?php echo stripcslashes( $footer_border_color ); ?>" />
													
														<span style="display: inline-block; background-color: #<?php echo stripcslashes( $footer_border_color ); ?>; border: 1px solid #DFDFDF; margin-bottom: -5px; height: 16px; width: 16px;"></span>
													
													</td>
													
													<td class="option-right">
													
														Select footer border color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Launch Project Button Color</h4>
														
														<select id="launch_project_button_color" name="launch_project_button_color" style="width: 100%;">
														
															<option <?php if ( $launch_project_button_color == "White" ) { echo 'selected="selected"'; } ?>>White</option>
															
															<option <?php if ( $launch_project_button_color == "Blue" ) { echo 'selected="selected"'; } ?>>Blue</option>
															
															<option <?php if ( $launch_project_button_color == "Sky Blue" ) { echo 'selected="selected"'; } ?>>Sky Blue</option>
															
															<option <?php if ( $launch_project_button_color == "Green" ) { echo 'selected="selected"'; } ?>>Green</option>
															
															<option <?php if ( $launch_project_button_color == "Yellow" ) { echo 'selected="selected"'; } ?>>Yellow</option>
															
															<option <?php if ( $launch_project_button_color == "Red" ) { echo 'selected="selected"'; } ?>>Red</option>
															
														</select>
													
													</td>
													
													<td class="option-right">
													
														Select launch project button color on portfolio item details page.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="hide_gallery_arrows" name="hide_gallery_arrows" <?php if ( $hide_gallery_arrows ) { echo 'checked="checked"'; } ?> value="hide_gallery_arrows" /> Disable Slider Arrows On Gallery Type Portfolio Item Page
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable slider arrows on gallery type portfolio item page.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_gototop_link" name="disable_gototop_link" <?php if ( $disable_gototop_link ) { echo 'checked="checked"'; } ?> value="disable_gototop_link" /> Disable Go To Top Link
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Footer has this link.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Cropping For Portfolio Page</h4>
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">Width:</span>
														
														<input type="text" id="crop_width_portfolio_page" name="crop_width_portfolio_page" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_width_portfolio_page ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<span style="display: inline-block; font-size: 11px; color: #666666; padding-left: 10px;">Height:</span>
														
														<input type="text" id="crop_height_portfolio_page" name="crop_height_portfolio_page" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_height_portfolio_page ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<label style="padding-left: 10px; margin-top: 0px;"><input type="checkbox" id="no_crop_portfolio_page" name="no_crop_portfolio_page" <?php if ( $no_crop_portfolio_page ) { echo 'checked="checked"'; } ?> value="no_crop_portfolio_page" /> Disable Cropping</label>
													
													</td>
													
													<td class="option-right">
													
														Change image cropping mode for the portfolio page. Just enter integer. Re upload featured images if you define new cropping dimensions.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Cropping For Latest Projects</h4>
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">Width:</span>
														
														<input type="text" id="crop_width_latest_projects" name="crop_width_latest_projects" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_width_latest_projects ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<span style="display: inline-block; font-size: 11px; color: #666666; padding-left: 10px;">Height:</span>
														
														<input type="text" id="crop_height_latest_projects" name="crop_height_latest_projects" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_height_latest_projects ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<label style="padding-left: 10px; margin-top: 0px;"><input type="checkbox" id="no_crop_latest_projects" name="no_crop_latest_projects" <?php if ( $no_crop_latest_projects ) { echo 'checked="checked"'; } ?> value="no_crop_latest_projects" /> Disable Cropping</label>
													
													</td>
													
													<td class="option-right">
													
														Change image cropping mode for the latest projects module on the homepage. Just enter integer. Re upload featured images if you define new cropping dimensions.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Cropping For Latest Posts</h4>
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">Width:</span>
														
														<input type="text" id="crop_width_latest_posts" name="crop_width_latest_posts" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_width_latest_posts ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<span style="display: inline-block; font-size: 11px; color: #666666; padding-left: 10px;">Height:</span>
														
														<input type="text" id="crop_height_latest_posts" name="crop_height_latest_posts" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_height_latest_posts ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<label style="padding-left: 10px; margin-top: 0px;"><input type="checkbox" id="no_crop_latest_posts" name="no_crop_latest_posts" <?php if ( $no_crop_latest_posts ) { echo 'checked="checked"'; } ?> value="no_crop_latest_posts" /> Disable Cropping</label>
													
													</td>
													
													<td class="option-right">
													
														Change image cropping mode for the latest posts module on the homepage. Just enter integer. Re upload featured images if you define new cropping dimensions.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Cropping For Blog Page (Layout Type 1)</h4>
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">Width:</span>
														
														<input type="text" id="crop_width_blog_page" name="crop_width_blog_page" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_width_blog_page ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<span style="display: inline-block; font-size: 11px; color: #666666; padding-left: 10px;">Height:</span>
														
														<input type="text" id="crop_height_blog_page" name="crop_height_blog_page" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_height_blog_page ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<label style="padding-left: 10px; margin-top: 0px;"><input type="checkbox" id="no_crop_blog_page" name="no_crop_blog_page" <?php if ( $no_crop_blog_page ) { echo 'checked="checked"'; } ?> value="no_crop_blog_page" /> Disable Cropping</label>
													
													</td>
													
													<td class="option-right">
													
														Change image cropping mode for the blog page. Just enter integer. Re upload featured images if you define new cropping dimensions.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Cropping For Blog Page (Layout Type 2)</h4>
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">Width:</span>
														
														<input type="text" id="crop_width_blog_page2" name="crop_width_blog_page2" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_width_blog_page2 ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<span style="display: inline-block; font-size: 11px; color: #666666; padding-left: 10px;">Height:</span>
														
														<input type="text" id="crop_height_blog_page2" name="crop_height_blog_page2" maxlength="6" size="6" value="<?php echo stripcslashes( $crop_height_blog_page2 ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">px</span>
														
														<label style="padding-left: 10px; margin-top: 0px;"><input type="checkbox" id="no_crop_blog_page2" name="no_crop_blog_page2" <?php if ( $no_crop_blog_page2 ) { echo 'checked="checked"'; } ?> value="no_crop_blog_page2" /> Disable Cropping</label>
													
													</td>
													
													<td class="option-right">
													
														Change image cropping mode for the blog page. Just enter integer. Re upload featured images if you define new cropping dimensions.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Back To The Portfolio Link</h4>
														
														<input type="text" id="back_to_portfolio" name="back_to_portfolio" style="width: 100%;" value="<?php echo stripcslashes( $back_to_portfolio ); ?>" />
													
													</td>
													
													<td class="option-right">
													
														Customize the link text. This link placed on the portfolio item details page.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>See Project Details Text</h4>
														
														<input type="text" id="see_project_details_text" name="see_project_details_text" style="width: 100%;" value="<?php echo stripcslashes( $see_project_details_text ); ?>" />
													
													</td>
													
													<td class="option-right">
													
														Edit see project details text on portfolio page.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Custom CSS</h4>
														
														<textarea id="custom_css" name="custom_css" class="code2" style="outline: none; width: 100%;" rows="12" cols="50"><?php echo stripcslashes( $custom_css ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Quickly add some CSS to customize the theme.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>External Stylesheet/JavaScript</h4>
														
														<textarea id="external_css" name="external_css" class="code2" style="outline: none; width: 100%;" rows="6" cols="50"><?php echo stripcslashes( $external_css ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Add your custom external stylesheet (.css) and javascript (.js) files to customize the theme. It will be inserted inside the head tag of the theme.
														<br />
														<br />
														Sample (.css):
														<br />
														<span class="code2">&lt;link rel="stylesheet" type="text/css" href="yourstyle.css" /&gt;</span>
														<br />
														<br />
														Sample (.js):
														<br />
														<span class="code2">&lt;script src="yourscript.js"&gt;&lt;/script&gt;</span>
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<input type="submit" name="submit" class="button-primary" value="Save Settings" />
														
														<input type="hidden" name="settings-submit" value="Y" />
													
													</td>
													
													<td class="option-right">
													
														Save changes.
														
													</td>
												</tr>
												
											</table>
											
										</form>
										
									</div>
									<!-- end .inside -->
									
								</div>
								<!-- end .postbox -->
								
							<?php
							
							break;
								
							case 'seo' :
							
								$site_description = get_option( 'site_description' );
								$site_keywords = get_option( 'site_keywords' );
								$site_author = get_option( 'site_author' );
								
								$facebook_share_title = get_option( 'facebook_share_title' );
								$facebook_share_description = get_option( 'facebook_share_description' );
								$facebook_share_thumb_img = get_option( 'facebook_share_thumb_img' );
								
								$tracking_code_head = get_option( 'tracking_code_head' );
								$tracking_code = get_option( 'tracking_code' );
								
								if ( esc_attr( @$_GET['saved'] ) == 'true' )
								{
									echo '<div class="alert-success" title="Click to close"><p><strong>Settings saved.</strong></p></div>';
								}
							?>
								<div class="postbox">
								
									<div class="inside">
									
										<form method="post" action="<?php admin_url( 'admin.php?page=theme-settings' ); ?>" class="ajax-form">
										
											<?php wp_nonce_field( "settings-page" ); ?>
											
											<table>
											
												<tr>
													<td class="option-left">
													
														<h4>Site Description</h4>
														
														<textarea id="site_description" name="site_description" style="outline: none; width: 100%;" rows="5" cols="50"><?php echo stripcslashes( $site_description ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														This text in the search results description on the search engines.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Site Keywords</h4>
														
														<textarea id="site_keywords" name="site_keywords" style="outline: none; width: 100%;" rows="5" cols="50"><?php echo stripcslashes( $site_keywords ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Specific words to describe your site. This is important for search engine optimization. Separate keywords with commas.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Site Author</h4>
														
														<input type="text" id="site_author" name="site_author" style="width: 100%;" value="<?php echo stripcslashes( $site_author ); ?>" />
													
													</td>
													
													<td class="option-right">
													
														Author of the site. It will be inserted inside the head tag of the theme.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Facebook Share Title</h4>
														
														<input type="text" id="facebook_share_title" name="facebook_share_title" style="width: 100%;" value="<?php echo stripcslashes( $facebook_share_title ); ?>" />
													
													</td>
													
													<td class="option-right">
													
														Meta Tag for Facebook share. It will be inserted inside the head tag of the theme.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Facebook Share Description</h4>
														
														<textarea id="facebook_share_description" name="facebook_share_description" style="outline: none; width: 100%;" rows="5" cols="50"><?php echo stripcslashes( $facebook_share_description ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Meta Tag for Facebook share. It will be inserted inside the head tag of the theme.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Facebook Share Thumbnail Image</h4>
													
														<input type="text" id="facebook_share_thumb_img" name="facebook_share_thumb_img" class="upload code2" style="width: 100%;" value="<?php echo $facebook_share_thumb_img; ?>" />
													
														<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
													
														<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $facebook_share_thumb_img; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Meta Tag for Facebook share. It will be inserted inside the head tag of the theme.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Tracking Code (/head)</h4>
														
														<textarea id="tracking_code_head" name="tracking_code_head" class="code2" style="outline: none; width: 100%;" rows="12" cols="50"><?php echo stripcslashes( $tracking_code_head ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Paste your Google Analytics (or other) tracking code here. It will be inserted before the closing head tag of the theme.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Tracking Code (/body)</h4>
														
														<textarea id="tracking_code" name="tracking_code" class="code2" style="outline: none; width: 100%;" rows="12" cols="50"><?php echo stripcslashes( $tracking_code ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Paste your Google Analytics (or other) tracking code here. It will be inserted before the closing body tag of the theme.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<input type="submit" name="submit" class="button-primary" value="Save Settings" />
														
														<input type="hidden" name="settings-submit" value="Y" />
													
													</td>
													
													<td class="option-right">
													
														Save changes.
														
													</td>
												</tr>
												
											</table>
											
										</form>
										
									</div>
									<!-- end .inside -->
									
								</div>
								<!-- end .postbox -->
								
							<?php
							
							break;
							
							case 'home' :
							
								$tagline_text = get_option('tagline_text');
								
								$slider_type = get_option('slider_type');
								$slide_animation_type = get_option( 'slide_animation_type' );
								$slide_animation_speed = get_option( 'slide_animation_speed' );
								$slide_waiting_time = get_option( 'slide_waiting_time' );
								
								$enable_video_in_slider_area = get_option( 'enable_video_in_slider_area' );
								$video_code_in_slider_area = get_option( 'video_code_in_slider_area' );
								
								$cta_title = get_option('cta_title');
								$cta_text = get_option('cta_text');
								$cta_button_text = get_option('cta_button_text');
								$cta_button_url = get_option('cta_button_url');
								$cta_button_color = get_option('cta_button_color');
								$hide_cta_info = get_option('hide_cta_info');
								
								$latest_proj_title = get_option('latest_proj_title');
								$latest_proj_text = get_option('latest_proj_text');
								$hide_latest_proj = get_option('hide_latest_proj');
								
								$feat_area_text = get_option('feat_area_text');
								$feat_area_but_text = get_option('feat_area_but_text');
								$feat_area_but_url = get_option('feat_area_but_url');
								$feat_area_but_col = get_option('feat_area_but_col');
								$hide_feat_area = get_option('hide_feat_area');
								
								$latest_blog_title = get_option('latest_blog_title');
								$latest_blog_text = get_option('latest_blog_text');
								$hide_latest_blog = get_option('hide_latest_blog');
								
								$clients_title = get_option('clients_title');
								$clients_sub_title = get_option('clients_sub_title');
								$hide_clients = get_option('hide_clients');
								
								$client_1_image = get_option('client_1_image');
								$client_2_image = get_option('client_2_image');
								$client_3_image = get_option('client_3_image');
								$client_4_image = get_option('client_4_image');
								$client_5_image = get_option('client_5_image');
								$client_6_image = get_option('client_6_image');
								
								$client_1_url = get_option('client_1_url');
								$client_2_url = get_option('client_2_url');
								$client_3_url = get_option('client_3_url');
								$client_4_url = get_option('client_4_url');
								$client_5_url = get_option('client_5_url');
								$client_6_url = get_option('client_6_url');
							
								if ( esc_attr( @$_GET['saved'] ) == 'true' )
								{
									echo '<div class="alert-success" title="Click to close"><p><strong>Settings saved.</strong></p></div>';
								}
							?>
							
								<form method="post" action="<?php admin_url( 'admin.php?page=theme-settings' ); ?>" class="ajax-form">
								
									<?php wp_nonce_field( "settings-page" ); ?>
									
									<div id="screen-meta" class="metabox-prefs" style="display: block; ">

										<div id="contextual-help-wrap" class="hidden" style="display: block; ">
										
											<div id="contextual-help-back"></div>
											
											<div id="contextual-help-columns">
											
												<div class="contextual-help-tabs">
												
													<ul>
													
														<li id="tab-link-overview" class="active">
														
															<a href="#tab-panel-1">Tagline | Slider</a>
															
														</li>
													
														<li id="tab-link-help-navigation" class="">
														
															<a href="#tab-panel-2">Call To Action</a>
															
														</li>
														
														<li id="tab-link-help-navigation" class="">
														
															<a href="#tab-panel-3">Latest Projects</a>
															
														</li>
														
														<li id="tab-link-help-navigation" class="">
														
															<a href="#tab-panel-4">Featured Area</a>
															
														</li>
														
														<li id="tab-link-help-navigation" class="">
														
															<a href="#tab-panel-5">From The Blog</a>
															
														</li>
														
														<li id="tab-link-help-navigation" class="">
														
															<a href="#tab-panel-6">Clients</a>
															
														</li>
														
													</ul>
													
												</div>
												
												<div class="contextual-help-tabs-wrap">
													
													<div id="tab-panel-1" class="help-tab-content active" style="">
														
														<div class="postbox">
														
															<table>
															
																<tr>
																	<td class="option-left">
																	
																		<h4>Tagline Text</h4>
																		
																		<textarea id="tagline_text" name="tagline_text" style="outline: none; width: 100%;" rows="4" cols="50"><?php echo stripcslashes( $tagline_text ); ?></textarea>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to display in homepage tagline or hide it.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Slider Type</h4>
																		
																		<select id="slider_type" name="slider_type" style="width: 100%;">
																		
																			<option <?php if ($slider_type == "Small") { echo 'selected="selected"'; } ?>>Small</option>
																			
																			<option <?php if ($slider_type == "Big") { echo 'selected="selected"'; } ?>>Big</option>
																			
																		</select>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Select big or small slider type for the theme homepage.
																	
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Slide Animation Type</h4>
																		
																		<select id="slide_animation_type" name="slide_animation_type" style="width: 100%;">
																		
																			<option <?php if ( $slide_animation_type == "Slide" ) { echo 'selected="selected"'; } ?>>Slide</option>
																			
																			<option <?php if ( $slide_animation_type == "Fade" ) { echo 'selected="selected"'; } ?>>Fade</option>
																			
																		</select>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Select slide animation type.
																		
																	</td>
																</tr>
																	
																<tr>
																	<td class="option-left">
																		
																		<h4>Slide Animation Speed</h4>
																		
																		<input type="text" id="slide_animation_speed" name="slide_animation_speed" maxlength="6" size="6" value="<?php echo stripcslashes( $slide_animation_speed ); ?>" />
																		
																		<span style="display: inline-block; font-size: 11px; color: #666666;">Default: 600</span>
																	
																	</td>
																	
																	<td class="option-right">
																		
																		Change slide animation speed. Just enter integer.
																		<br />
																		<br />
																		Sample:
																		<br />
																		2000 = 2 seconds
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Slide Waiting Time</h4>
																		
																		<input type="text" id="slide_waiting_time" name="slide_waiting_time" maxlength="6" size="6" value="<?php echo stripcslashes( $slide_waiting_time ); ?>" />
																		
																		<span style="display: inline-block; font-size: 11px; color: #666666;">Default: 4000</span>
																	
																	</td>
																	
																	<td class="option-right">
																		
																		Change slide waiting time. Just enter integer.
																		<br />
																		<br />
																		Sample:
																		<br />
																		2000 = 2 seconds
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<label>
																		
																			<input type="checkbox" id="enable_video_in_slider_area" name="enable_video_in_slider_area" <?php if ( $enable_video_in_slider_area ) { echo 'checked="checked"'; } ?> value="enable_video_in_slider_area" /> Enable Video in Slider Area
																		
																		</label>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Disable slider on homepage to show video instead.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Video Embed Code (iframe)</h4>
																		
																		<textarea id="video_code_in_slider_area" name="video_code_in_slider_area" class="code2" style="outline: none; width: 100%;" rows="8" cols="50"><?php echo stripcslashes( $video_code_in_slider_area ); ?></textarea>
																		
																		<span style="display: inline-block; font-size: 11px; color: #666666; margin-top: 5px;">Sample:<br><br><span class="code2"><span><</span>iframe src="http://player.vimeo.com/video/1755557" frameborder="0"><span><</span>/iframe<span>></span></span></span>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter video embed code to display in homepage. There must be at least one dummy slide to work video functionality.
																	
																	</td>
																</tr>
												
																<tr>
																	<td class="option-left">
																	
																		<input type="submit" name="submit" class="button-primary" value="Save Settings" />
																		
																		<input type="hidden" name="settings-submit" value="Y" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Save changes.
																		
																	</td>
																</tr>
														
															</table>
														
														</div>
														<!-- end .postbox -->
														
													</div>
												
													<div id="tab-panel-2" class="help-tab-content" style="display: none;">
														
														<div class="postbox">
														
															<table>
															
																<tr>
																	<td class="option-left">
																	
																		<h4>Call To Action Title</h4>
																		
																		<input type="text" id="cta_title" name="cta_title" style="width: 100%;" value="<?php echo stripcslashes( $cta_title ); ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Call to action area is the right side of the small slider. Enter text to display in homepage call to action title.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Call To Action Text</h4>
																		
																		<textarea id="cta_text" name="cta_text" style="outline: none; width: 100%;" rows="6" cols="50"><?php echo stripcslashes( $cta_text ); ?></textarea>
																	
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to display in homepage call to action text.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Call To Action Button Text</h4>
																		
																		<input type="text" id="cta_button_text" name="cta_button_text" style="width: 100%;" value="<?php echo stripcslashes( $cta_button_text ); ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to set call to action button text.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Call To Action Button Target URL</h4>
																		
																		<input type="text" id="cta_button_url" name="cta_button_url" class="code2" style="width: 100%;" value="<?php echo $cta_button_url; ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter an url to call to action button click action.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																		
																			<h4>Call To Action Button Color</h4>
																			
																			<select id="cta_button_color" name="cta_button_color" style="width: 100%;">
																			
																				<option <?php  if ($cta_button_color == "White") { echo 'selected="selected"'; } ?>>White</option>
																				
																				<option <?php  if ($cta_button_color == "Blue") { echo 'selected="selected"'; } ?>>Blue</option>
																				
																				<option <?php  if ($cta_button_color == "Sky Blue") { echo 'selected="selected"'; } ?>>Sky Blue</option>
																				
																				<option <?php  if ($cta_button_color == "Green") { echo 'selected="selected"'; } ?>>Green</option>
																				
																				<option <?php  if ($cta_button_color == "Yellow") { echo 'selected="selected"'; } ?>>Yellow</option>
																				
																				<option <?php  if ($cta_button_color == "Red") { echo 'selected="selected"'; } ?>>Red</option>
																				
																			</select>
																		
																	</td>
																	
																	<td class="option-right">
																	
																		Select call to action button color.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<label>
																		
																			<input type="checkbox" id="hide_cta_info" name="hide_cta_info" <?php if ( $hide_cta_info ) { echo 'checked="checked"'; } ?> value="hide_cta_info" /> Enable Call To Action Area For Widgets
																		
																		</label>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Use call to action area as a widget area.
																		
																	</td>
																</tr>
												
																<tr>
																	<td class="option-left">
																	
																		<input type="submit" name="submit" class="button-primary" value="Save Settings" />
																		
																		<input type="hidden" name="settings-submit" value="Y" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Save changes.
																		
																	</td>
																</tr>
														
															</table>
														
														</div>
														<!-- end .postbox -->
														
													</div>
													
													<div id="tab-panel-3" class="help-tab-content" style="display: none;">
														
														<div class="postbox">
														
															<table>
															
																<tr>
																	<td class="option-left">
																	
																		<h4>Latest Projects Title</h4>
																		
																		<input type="text" id="latest_proj_title" name="latest_proj_title" style="width: 100%;" value="<?php echo stripcslashes( $latest_proj_title ); ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to display in homepage latest projects title.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Latest Projects Text</h4>
																		
																		<textarea id="latest_proj_text" name="latest_proj_text" style="outline: none; width: 100%;" rows="4" cols="50"><?php echo stripcslashes( $latest_proj_text ); ?></textarea>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to display in homepage latest projects text.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<label>
																		
																			<input type="checkbox" id="hide_latest_proj" name="hide_latest_proj" <?php if ($hide_latest_proj) { echo 'checked="checked"'; } ?> value="hide_latest_proj" /> Disable Latest Projects Module
																		
																		</label>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Disable latest projects module.
																	
																	</td>
																</tr>
												
																<tr>
																	<td class="option-left">
																	
																		<input type="submit" name="submit" class="button-primary" value="Save Settings" />
																		
																		<input type="hidden" name="settings-submit" value="Y" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Save changes.
																		
																	</td>
																</tr>
														
															</table>
														
														</div>
														<!-- end .postbox -->
														
													</div>
													
													<div id="tab-panel-4" class="help-tab-content" style="display: none;">
														
														<div class="postbox">
														
															<table>
															
																<tr>
																	<td class="option-left">
																	
																		<h4>Featured Area Text</h4>
																		
																		<textarea id="feat_area_text" name="feat_area_text" style="outline: none; width: 100%;" rows="4" cols="50"><?php echo stripcslashes( $feat_area_text ); ?></textarea>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to display in homepage featured area text.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Featured Area Button Text</h4>
																		
																		<input type="text" id="feat_area_but_text" name="feat_area_but_text" style="width: 100%;" value="<?php echo stripcslashes( $feat_area_but_text ); ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to display in homepage featured area button text.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Featured Area Button Target URL</h4>
																		
																		<input type="text" id="feat_area_but_url" name="feat_area_but_url" class="code2" style="width: 100%;" value="<?php echo $feat_area_but_url; ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter an url to featured area button click action.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Featured Area Button Color</h4>
																		
																		<select id="feat_area_but_col" name="feat_area_but_col" style="width: 100%;">
																		
																			<option <?php if ( $feat_area_but_col == "White" ) { echo 'selected="selected"'; } ?>>White</option>
																			
																			<option <?php if ( $feat_area_but_col == "Blue" ) { echo 'selected="selected"'; } ?>>Blue</option>
																			
																			<option <?php if ( $feat_area_but_col == "Sky Blue" ) { echo 'selected="selected"'; } ?>>Sky Blue</option>
																			
																			<option <?php if ( $feat_area_but_col == "Green" ) { echo 'selected="selected"'; } ?>>Green</option>
																			
																			<option <?php if ( $feat_area_but_col == "Yellow" ) { echo 'selected="selected"'; } ?>>Yellow</option>
																			
																			<option <?php if ( $feat_area_but_col == "Red" ) { echo 'selected="selected"'; } ?>>Red</option>
																			
																		</select>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Select featured area button color.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<label>
																		
																			<input type="checkbox" id="hide_feat_area" name="hide_feat_area" <?php if ( $hide_feat_area ) { echo 'checked="checked"'; } ?> value="hide_feat_area" /> Disable Featured Area Module
																		
																		</label>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Disable featured area module.
																	
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<input type="submit" name="submit" class="button-primary" value="Save Settings" />
																		
																		<input type="hidden" name="settings-submit" value="Y" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Save changes.
																		
																	</td>
																</tr>
														
															</table>
														
														</div>
														<!-- end .postbox -->
														
													</div>
													
													<div id="tab-panel-5" class="help-tab-content" style="display: none;">
														
														<div class="postbox">
														
															<table>
															
																<tr>
																	<td class="option-left">
																	
																		<h4>From The Blog Title</h4>
																		
																		<input type="text" id="latest_blog_title" name="latest_blog_title" style="width: 100%;" value="<?php echo stripcslashes( $latest_blog_title ); ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to display in homepage from the blog title.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>From The Blog Text</h4>
																		
																		<textarea id="latest_blog_text" name="latest_blog_text" style="outline: none; width: 100%;" rows="4" cols="50"><?php echo stripcslashes( $latest_blog_text ); ?></textarea>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to display in homepage from the blog text.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<label>
																		
																			<input type="checkbox" id="hide_latest_blog" name="hide_latest_blog" <?php if ($hide_latest_blog) { echo 'checked="checked"'; } ?> value="hide_latest_blog" /> Disable From The Blog Module
																		
																		</label>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Disable from the blog module.
																	
																	</td>
																</tr>
												
																<tr>
																	<td class="option-left">
																	
																		<input type="submit" name="submit" class="button-primary" value="Save Settings" />
																		
																		<input type="hidden" name="settings-submit" value="Y" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Save changes.
																		
																	</td>
																</tr>
														
															</table>
														
														</div>
														<!-- end .postbox -->
														
													</div>
													
													<div id="tab-panel-6" class="help-tab-content" style="display: none;">
														
														<div class="postbox">
														
															<table>
															
																<tr>
																	<td class="option-left">
																	
																		<h4>Clients Title</h4>
																		
																		<input type="text" id="clients_title" name="clients_title" style="width: 100%;" value="<?php echo stripcslashes( $clients_title ); ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter text to display in homepage clients title.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Clients Sub Title</h4>
																		
																		<input type="text" id="clients_sub_title" name="clients_sub_title" style="width: 100%;" value="<?php echo stripcslashes( $clients_sub_title ); ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		This sub title placed right side of the clients module.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<label>
																		
																			<input type="checkbox" id="hide_clients" name="hide_clients" <?php if ( $hide_clients ) { echo 'checked="checked"'; } ?> value="hide_clients" /> Disable Clients Module
																		
																		</label>
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Disable clients module.
																	
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 1 Image</h4>
																		
																		<input type="text" id="client_1_image" name="client_1_image" class="upload code2" style="width: 100%;" value="<?php echo $client_1_image; ?>" />
																		
																		<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
																		
																		<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $client_1_image; ?>" />
																		
																	</td>
																	
																	<td class="option-right">
																	
																		Upload an image for client 1.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 1 Target URL</h4>
																		
																		<input type="text" id="client_1_url" name="client_1_url" class="code2" style="width: 100%;" value="<?php echo $client_1_url; ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter an url for client 1.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 2 Image</h4>
																		
																		<input type="text" id="client_2_image" name="client_2_image" class="upload code2" style="width: 100%;" value="<?php echo $client_2_image; ?>" />
																		
																		<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
																		
																		<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $client_2_image; ?>" />
																		
																	</td>
																	
																	<td class="option-right">
																	
																		Upload an image for client 2.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 2 Target URL</h4>
																		
																		<input type="text" id="client_2_url" name="client_2_url" class="code2" style="width: 100%;" value="<?php echo $client_2_url; ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter an url for client 2.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 3 Image</h4>
																		
																		<input type="text" id="client_3_image" name="client_3_image" class="upload code2" style="width: 100%;" value="<?php echo $client_3_image; ?>" />
																		
																		<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
																		
																		<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $client_3_image; ?>" />
																		
																	</td>
																	
																	<td class="option-right">
																	
																		Upload an image for client 3.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 3 Target URL</h4>
																		
																		<input type="text" id="client_3_url" name="client_3_url" class="code2" style="width: 100%;" value="<?php echo $client_3_url; ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter an url for client 3.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 4 Image</h4>
																		
																		<input type="text" id="client_4_image" name="client_4_image" class="upload code2" style="width: 100%;" value="<?php echo $client_4_image; ?>" />
																		
																		<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
																		
																		<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $client_4_image; ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Upload an image for client 4.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 4 Target URL</h4>
																		
																		<input type="text" id="client_4_url" name="client_4_url" class="code2" style="width: 100%;" value="<?php echo $client_4_url; ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter an url for client 4.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 5 Image</h4>
																		
																		<input type="text" id="client_5_image" name="client_5_image" class="upload code2" style="width: 100%;" value="<?php echo $client_5_image; ?>" />
																		
																		<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
																		
																		<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $client_5_image; ?>" />
																		
																	</td>
																	
																	<td class="option-right">
																	
																		Upload an image for client 5.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 5 Target URL</h4>
																		
																		<input type="text" id="client_5_url" name="client_5_url" class="code2" style="width: 100%;" value="<?php echo $client_5_url; ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter an url for client 5.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 6 Image</h4>
																		
																		<input type="text" id="client_6_image" name="client_6_image" class="upload code2" style="width: 100%;" value="<?php echo $client_6_image; ?>" />
																		
																		<input type="button" class="button upload-button" style="margin-top: 10px;" value="Upload Image" />
																		
																		<img style="margin-top: 10px; max-height: 50px;" align="right" alt="" src="<?php echo $client_6_image; ?>" />
																		
																	</td>
																	
																	<td class="option-right">
																	
																		Upload an image for client 6.
																		
																	</td>
																</tr>
																
																<tr>
																	<td class="option-left">
																	
																		<h4>Client 6 Target URL</h4>
																		
																		<input type="text" id="client_6_url" name="client_6_url" class="code2" style="width: 100%;" value="<?php echo $client_6_url; ?>" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Enter an url for client 6.
																		
																	</td>
																</tr>
															
																<tr>
																	<td class="option-left">
																	
																		<input type="submit" name="submit" class="button-primary" value="Save Settings" />
																		
																		<input type="hidden" name="settings-submit" value="Y" />
																	
																	</td>
																	
																	<td class="option-right">
																	
																		Save changes.
																		
																	</td>
																</tr>
													
															</table>
														
														</div>
														<!-- end .postbox -->
														
													</div>
												
												</div>
												
											</div>
											
										</div>
										
									</div>
								
								</form>
								
							<?php
							
							break;
								
							case 'blog' :
							
								$blog_layout_type = get_option( 'blog_layout_type' );
								$enable_slider_on_blog = get_option( 'enable_slider_on_blog' );
								$full_width_blog = get_option( 'full_width_blog' );
								$full_width_post = get_option( 'full_width_post' );
								
								$readmore_btn_color_on_blog = get_option( 'readmore_btn_color_on_blog' );
								$readmore_btn_color_on_home = get_option( 'readmore_btn_color_on_home' );
								$readmore_btn_color_on_category = get_option( 'readmore_btn_color_on_category' );
								$readmore_btn_color_on_tag = get_option( 'readmore_btn_color_on_tag' );
								$readmore_btn_color_on_author = get_option( 'readmore_btn_color_on_author' );
								$comment_form_btn_color = get_option( 'comment_form_btn_color' );
								
								$hide_about_author = get_option( 'hide_about_author' );
								$hide_post_counts = get_option( 'hide_post_counts' );
								$the_excerpt_on_off = get_option( 'the_excerpt_on_off' );
								$enable_edit_link = get_option( 'enable_edit_link' );
								
								$change_prev_next_post_links_loc = get_option( 'change_prev_next_post_links_loc' );
								$disable_prev_next_post_links = get_option( 'disable_prev_next_post_links' );
								
								$change_prev_next_portfolio_item_links_loc = get_option( 'change_prev_next_portfolio_item_links_loc' );
								$disable_prev_next_portfolio_item_links = get_option( 'disable_prev_next_portfolio_item_links' );
								
								$hide_post_infos_on_blog = get_option( 'hide_post_infos_on_blog' );
								$disable_subtitle_in_blog_single = get_option( 'disable_subtitle_in_blog_single' );
								
								$disable_blog_search = get_option( 'disable_blog_search' );
								$disable_page_search = get_option( 'disable_page_search' );
								$disable_full_width_page_search = get_option( 'disable_full_width_page_search' );
								$disable_portfolio_search = get_option( 'disable_portfolio_search' );
								$enable_header_search = get_option( 'enable_header_search' );
								
								$disable_feat_img_post_single = get_option( 'disable_feat_img_post_single' );
								$disable_feat_img_in_rss = get_option( 'disable_feat_img_in_rss' );
							
								if ( esc_attr( @$_GET['saved'] ) == 'true' )
								{
									echo '<div class="alert-success" title="Click to close"><p><strong>Settings saved.</strong></p></div>';
								}
							?>
								<div class="postbox">
								
									<div class="inside">
									
										<form method="post" action="<?php admin_url( 'admin.php?page=theme-settings' ); ?>" class="ajax-form">
										
											<?php wp_nonce_field( "settings-page" ); ?>
											
											<table>
											
												<tr>
													<td class="option-left">
													
														<h4>Blog Layout</h4>
														
														<select id="blog_layout_type" name="blog_layout_type" style="width: 100%;">
														
															<option <?php  if ( $blog_layout_type == "Layout 1" ) { echo 'selected="selected"'; } ?>>Layout 1</option>
															
															<option <?php  if ( $blog_layout_type == "Layout 2" ) { echo 'selected="selected"'; } ?>>Layout 2</option>
															
														</select>
													
													</td>
													
													<td class="option-right">
													
														Select blog layout type for the theme blog page.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="enable_slider_on_blog" name="enable_slider_on_blog" <?php if ( $enable_slider_on_blog ) { echo 'checked="checked"'; } ?> value="enable_slider_on_blog" /> Enable Slider On Blog Page
													
														</label>
													
													</td>
													
													<td class="option-right">
													
														Enable slider on blog page.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="full_width_blog" name="full_width_blog" <?php if ( $full_width_blog ) { echo 'checked="checked"'; } ?> value="full_width_blog" /> Enable Full Width Blog Page
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable sidebar and make blog page full width.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="full_width_post" name="full_width_post" <?php if ( $full_width_post ) { echo 'checked="checked"'; } ?> value="full_width_post" /> Enable Full Width Blog Post
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable sidebar and make blog post full width.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Read More Button Color On Blog Page</h4>
														
														<select id="readmore_btn_color_on_blog" name="readmore_btn_color_on_blog" style="width: 100%;">
														
															<option <?php  if ( $readmore_btn_color_on_blog == "White" ) { echo 'selected="selected"'; } ?>>White</option>
															
															<option <?php  if ( $readmore_btn_color_on_blog == "Blue" ) { echo 'selected="selected"'; } ?>>Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_blog == "Sky Blue" ) { echo 'selected="selected"'; } ?>>Sky Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_blog == "Green" ) { echo 'selected="selected"'; } ?>>Green</option>
															
															<option <?php  if ( $readmore_btn_color_on_blog == "Yellow" ) { echo 'selected="selected"'; } ?>>Yellow</option>
															
															<option <?php  if ( $readmore_btn_color_on_blog == "Red" ) { echo 'selected="selected"'; } ?>>Red</option>
															
														</select>
													
													</td>
													
													<td class="option-right">
													
														Select read more button color on blog page.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Read More Button Color On Homepage</h4>
														
														<select id="readmore_btn_color_on_home" name="readmore_btn_color_on_home" style="width: 100%;">
														
															<option <?php  if ( $readmore_btn_color_on_home == "White" ) { echo 'selected="selected"'; } ?>>White</option>
															
															<option <?php  if ( $readmore_btn_color_on_home == "Blue" ) { echo 'selected="selected"'; } ?>>Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_home == "Sky Blue" ) { echo 'selected="selected"'; } ?>>Sky Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_home == "Green" ) { echo 'selected="selected"'; } ?>>Green</option>
															
															<option <?php  if ( $readmore_btn_color_on_home == "Yellow" ) { echo 'selected="selected"'; } ?>>Yellow</option>
															
															<option <?php  if ( $readmore_btn_color_on_home == "Red" ) { echo 'selected="selected"'; } ?>>Red</option>
															
														</select>
													
													</td>
													
													<td class="option-right">
													
														Select read more button color on homepage.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Read More Button Color On Category Page</h4>
														
														<select id="readmore_btn_color_on_category" name="readmore_btn_color_on_category" style="width: 100%;">
														
															<option <?php  if ( $readmore_btn_color_on_category == "White" ) { echo 'selected="selected"'; } ?>>White</option>
															
															<option <?php  if ( $readmore_btn_color_on_category == "Blue" ) { echo 'selected="selected"'; } ?>>Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_category == "Sky Blue" ) { echo 'selected="selected"'; } ?>>Sky Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_category == "Green" ) { echo 'selected="selected"'; } ?>>Green</option>
															
															<option <?php  if ( $readmore_btn_color_on_category == "Yellow" ) { echo 'selected="selected"'; } ?>>Yellow</option>
															
															<option <?php  if ( $readmore_btn_color_on_category == "Red" ) { echo 'selected="selected"'; } ?>>Red</option>
															
														</select>
													
													</td>
													
													<td class="option-right">
													
														Select read more button color on category page.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Read More Button Color On Tag Page</h4>
														
														<select id="readmore_btn_color_on_tag" name="readmore_btn_color_on_tag" style="width: 100%;">
														
															<option <?php  if ( $readmore_btn_color_on_tag == "White" ) { echo 'selected="selected"'; } ?>>White</option>
															
															<option <?php  if ( $readmore_btn_color_on_tag == "Blue" ) { echo 'selected="selected"'; } ?>>Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_tag == "Sky Blue" ) { echo 'selected="selected"'; } ?>>Sky Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_tag == "Green" ) { echo 'selected="selected"'; } ?>>Green</option>
															
															<option <?php  if ( $readmore_btn_color_on_tag == "Yellow" ) { echo 'selected="selected"'; } ?>>Yellow</option>
															
															<option <?php  if ( $readmore_btn_color_on_tag == "Red" ) { echo 'selected="selected"'; } ?>>Red</option>
															
														</select>
													
													</td>
													
													<td class="option-right">
													
														Select read more button color on tag page.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Read More Button Color On Author Page</h4>
														
														<select id="readmore_btn_color_on_author" name="readmore_btn_color_on_author" style="width: 100%;">
														
															<option <?php  if ( $readmore_btn_color_on_author == "White" ) { echo 'selected="selected"'; } ?>>White</option>
															
															<option <?php  if ( $readmore_btn_color_on_author == "Blue" ) { echo 'selected="selected"'; } ?>>Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_author == "Sky Blue" ) { echo 'selected="selected"'; } ?>>Sky Blue</option>
															
															<option <?php  if ( $readmore_btn_color_on_author == "Green" ) { echo 'selected="selected"'; } ?>>Green</option>
															
															<option <?php  if ( $readmore_btn_color_on_author == "Yellow" ) { echo 'selected="selected"'; } ?>>Yellow</option>
															
															<option <?php  if ( $readmore_btn_color_on_author == "Red" ) { echo 'selected="selected"'; } ?>>Red</option>
															
														</select>
													
													</td>
													
													<td class="option-right">
													
														Select read more button color on author page.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Comment Form Submit Button Color</h4>
														
														<select id="comment_form_btn_color" name="comment_form_btn_color" style="width: 100%;">
														
															<option <?php  if ( $comment_form_btn_color == "White" ) { echo 'selected="selected"'; } ?>>White</option>
															
															<option <?php  if ( $comment_form_btn_color == "Blue" ) { echo 'selected="selected"'; } ?>>Blue</option>
															
															<option <?php  if ( $comment_form_btn_color == "Sky Blue" ) { echo 'selected="selected"'; } ?>>Sky Blue</option>
															<option <?php  if ( $comment_form_btn_color == "Green" ) { echo 'selected="selected"'; } ?>>Green</option>
															
															<option <?php  if ( $comment_form_btn_color == "Yellow" ) { echo 'selected="selected"'; } ?>>Yellow</option>
															
															<option <?php  if ( $comment_form_btn_color == "Red" ) { echo 'selected="selected"'; } ?>>Red</option>
															
														</select>
													
													</td>
													
													<td class="option-right">
													
														Select read more button color on homepage.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="hide_about_author" name="hide_about_author" <?php if ($hide_about_author) { echo 'checked="checked"'; } ?> value="hide_about_author" /> Disable About The Author Module
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable about the author module in the single blog posts.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="hide_post_counts" name="hide_post_counts" <?php if ($hide_post_counts) { echo 'checked="checked"'; } ?> value="hide_post_counts" /> Disable Post Counts In the Archive Page
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable post counts in the archive page.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="the_excerpt_on_off" name="the_excerpt_on_off" <?php if ( $the_excerpt_on_off ) { echo 'checked="checked"'; } ?> value="the_excerpt_on_off" /> Disable Excerpt Content In The Blog Page
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable excerpt content and enable full content for the posts.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="enable_edit_link" name="enable_edit_link" <?php if ( $enable_edit_link ) { echo 'checked="checked"'; } ?> value="enable_edit_link" /> Enable Edit Link For Pages And Posts
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Edit link available for every single post, default page template and full width page template.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="change_prev_next_post_links_loc" name="change_prev_next_post_links_loc" <?php if ( $change_prev_next_post_links_loc ) { echo 'checked="checked"'; } ?> value="change_prev_next_post_links_loc" /> Change Previous/Next Post Links Location
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Change previous/next post links location.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_prev_next_post_links" name="disable_prev_next_post_links" <?php if ( $disable_prev_next_post_links ) { echo 'checked="checked"'; } ?> value="disable_prev_next_post_links" /> Disable Previous/Next Post Links
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable previous/next post links.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="change_prev_next_portfolio_item_links_loc" name="change_prev_next_portfolio_item_links_loc" <?php if ( $change_prev_next_portfolio_item_links_loc ) { echo 'checked="checked"'; } ?> value="change_prev_next_portfolio_item_links_loc" /> Change Previous/Next Portfolio Item Links Location
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Change previous/next portfolio item links location.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_prev_next_portfolio_item_links" name="disable_prev_next_portfolio_item_links" <?php if ( $disable_prev_next_portfolio_item_links ) { echo 'checked="checked"'; } ?> value="disable_prev_next_portfolio_item_links" /> Disable Previous/Next Portfolio Item Links
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Disable previous/next portfolio item links.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="hide_post_infos_on_blog" name="hide_post_infos_on_blog" <?php if ( $hide_post_infos_on_blog ) { echo 'checked="checked"'; } ?> value="hide_post_infos_on_blog" /> Disable Post Author/Date/Comment Informations In The Blog Page
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Disable post author/date/comment informations in the blog page.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_subtitle_in_blog_single" name="disable_subtitle_in_blog_single" <?php if ( $disable_subtitle_in_blog_single ) { echo 'checked="checked"'; } ?> value="disable_subtitle_in_blog_single" /> Disable Subtitle In The Blog Single Page
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Disable subtitle in the blog single page.
													
													</td>
												</tr>
											
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_blog_search" name="disable_blog_search" <?php if ( $disable_blog_search ) { echo 'checked="checked"'; } ?> value="disable_blog_search" /> Disable Search Module In The Blog And Blog Single Page
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Disable search module in the blog and blog single page.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_page_search" name="disable_page_search" <?php if ( $disable_page_search ) { echo 'checked="checked"'; } ?> value="disable_page_search" /> Disable Search Module In Pages
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Disable search module in pages.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_full_width_page_search" name="disable_full_width_page_search" <?php if ( $disable_full_width_page_search ) { echo 'checked="checked"'; } ?> value="disable_full_width_page_search" /> Disable Search Module In The Full Width Page Template
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Disable search module in the full width page template.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_portfolio_search" name="disable_portfolio_search" <?php if ( $disable_portfolio_search ) { echo 'checked="checked"'; } ?> value="disable_portfolio_search" /> Disable Search Module In The Portfolio Page
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Disable search module in the portfolio page.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="enable_header_search" name="enable_header_search" <?php if ( $enable_header_search ) { echo 'checked="checked"'; } ?> value="enable_header_search" /> Enable Search Module In The Header
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Social icons will be disable in the header.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_feat_img_post_single" name="disable_feat_img_post_single" <?php if ( $disable_feat_img_post_single ) { echo 'checked="checked"'; } ?> value="disable_feat_img_post_single" /> Disable Featured Image In Post Single
														
														</label>
													
													</td>
												
													<td class="option-right">
														
														Disable featured image in post single page not in the blog page.
													
													</td>
												</tr>
											
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="disable_feat_img_in_rss" name="disable_feat_img_in_rss" <?php if ( $disable_feat_img_in_rss ) { echo 'checked="checked"'; } ?> value="disable_feat_img_in_rss" /> Disable Featured Images In RSS Feed And FeedBurner
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable thumbnails in RSS feed and <a target="_blank" href="http://feedburner.google.com" style="text-decoration: none;" title="Google FeedBurner">FeedBurner</a>.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<input type="submit" name="submit" class="button-primary" value="Save Settings" />
														
														<input type="hidden" name="settings-submit" value="Y" />
													
													</td>
													
													<td class="option-right">
														<p style="font-size: 11px; color: #999999;">Save changes.</p>
													</td>
												</tr>
												
											</table>
											
										</form>
										
									</div>
									<!-- end .inside -->
									
								</div>
								<!-- end .postbox -->
								
							<?php
							
							break;
							
							case 'social-media' :
							
								$social_facebook = get_option( 'social_facebook' );
								$social_twitter = get_option( 'social_twitter' );
								$social_google = get_option( 'social_google' );
								
								$social_tumblr = get_option( 'social_tumblr' );
								$social_pinterest = get_option( 'social_pinterest' );
								$social_linkedin = get_option( 'social_linkedin' );
								
								$social_skype = get_option( 'social_skype' );
								
								$social_flickr = get_option( 'social_flickr' );
								$social_picasa = get_option( 'social_picasa' );
								
								$social_dribbble = get_option( 'social_dribbble' );
								$social_forrst = get_option( 'social_forrst' );
								
								$social_lastfm = get_option( 'social_lastfm' );
								
								$social_vimeo = get_option( 'social_vimeo' );
								$social_youtube = get_option( 'social_youtube' );
								
								$social_rss = get_option( 'social_rss' );
							
								if ( esc_attr( @$_GET['saved'] ) == 'true' )
								{
									echo '<div class="alert-success" title="Click to close"><p><strong>Settings saved.</strong></p></div>';
								}
							?>
								<div class="postbox">
								
									<div class="inside">
									
										<form method="post" action="<?php admin_url( 'admin.php?page=theme-settings' ); ?>" class="ajax-form">
										
											<?php wp_nonce_field( "settings-page" ); ?>
											
											<table>
											
												<tr>
													<td class="option-left">
													
														<h4>Facebook</h4>
														
														<input type="text" id="social_facebook" name="social_facebook" class="code2" style="width: 100%;" value="<?php echo $social_facebook; ?>" />
													
													</td>
													
													<td class="option-right">
													
														This social icons placed on the header of the theme. Enter a Facebook url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Twitter</h4>
														
														<input type="text" id="social_twitter" name="social_twitter" class="code2" style="width: 100%;" value="<?php echo $social_twitter; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Twitter url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Google+</h4>
														
														<input type="text" id="social_google" name="social_google" class="code2" style="width: 100%;" value="<?php echo $social_google; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Google+ url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Tumblr</h4>
														
														<input type="text" id="social_tumblr" name="social_tumblr" class="code2" style="width: 100%;" value="<?php echo $social_tumblr; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Tumblr url.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Pinterest</h4>
														
														<input type="text" id="social_pinterest" name="social_pinterest" class="code2" style="width: 100%;" value="<?php echo $social_pinterest; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Pinterest url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>LinkedIn</h4>
														
														<input type="text" id="social_linkedin" name="social_linkedin" class="code2" style="width: 100%;" value="<?php echo $social_linkedin; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a LinkedIn url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Skype</h4>
														
														<input type="text" id="social_skype" name="social_skype" class="code2" style="width: 100%;" value="<?php echo $social_skype; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Skype url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Flickr</h4>
														
														<input type="text" id="social_flickr" name="social_flickr" class="code2" style="width: 100%;" value="<?php echo $social_flickr; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Flickr url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Picasa</h4>
														
														<input type="text" id="social_picasa" name="social_picasa" class="code2" style="width: 100%;" value="<?php echo $social_picasa; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Picasa url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Dribbble</h4>
														
														<input type="text" id="social_dribbble" name="social_dribbble" class="code2" style="width: 100%;" value="<?php echo $social_dribbble; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Dribbble url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Forrst</h4>
														
														<input type="text" id="social_forrst" name="social_forrst" class="code2" style="width: 100%;" value="<?php echo $social_forrst; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Forrst url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Last.fm</h4>
														
														<input type="text" id="social_lastfm" name="social_lastfm" class="code2" style="width: 100%;" value="<?php echo $social_lastfm; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Last.fm url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Vimeo</h4>
														
														<input type="text" id="social_vimeo" name="social_vimeo" class="code2" style="width: 100%;" value="<?php echo $social_vimeo; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a Vimeo url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>YouTube</h4>
														
														<input type="text" id="social_youtube" name="social_youtube" class="code2" style="width: 100%;" value="<?php echo $social_youtube; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter a YouTube url.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>RSS</h4>
														
														<input type="text" id="social_rss" name="social_rss" class="code2" style="width: 100%;" value="<?php echo $social_rss; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Shows default RSS 2.0 feed url. If you want to change it just enter your RSS url.
														<br>
														<br>
														Recommended:
														<br>
														<span class="code2"><?php echo get_bloginfo( 'rss2_url' ); ?></span>
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<input type="submit" name="submit" class="button-primary" value="Save Settings" />
														
														<input type="hidden" name="settings-submit" value="Y" />
													
													</td>
													
													<td class="option-right">
													
														Save changes.
														
													</td>
												</tr>
												
											</table>
											
										</form>
										
									</div>
									<!-- end .inside -->
									
								</div>
								<!-- end .postbox -->
								
							<?php
							
							break;

							case 'contact' :
							
								$contact_inf_title = get_option( 'contact_inf_title' );
								$contact_inf_text = get_option( 'contact_inf_text' );
								
								$google_map_url = get_option( 'google_map_url' );
								$google_map_height = get_option( 'google_map_height' );
								$hide_google_map = get_option( 'hide_google_map' );
								
								$contact_form_email = get_option( 'contact_form_email' );
								$contact_form_button_color = get_option( 'contact_form_button_color' );
								$hide_contact_form = get_option( 'hide_contact_form' );
								$enable_contact_form7_styling = get_option( 'enable_contact_form7_styling' );
								
								$hide_contact_search = get_option( 'hide_contact_search' );
								
								$contact_us_title = get_option( 'contact_us_title' );
								$contact_address = get_option( 'contact_address' );
								$contact_tel = get_option( 'contact_tel' );
								$contact_fax = get_option( 'contact_fax' );
								$contact_email = get_option( 'contact_email' );
							
								if ( esc_attr( @$_GET['saved'] ) == 'true' )
								{
									echo '<div class="alert-success" title="Click to close"><p><strong>Settings saved.</strong></p></div>';
								}
							?>
								<div class="postbox">
								
									<div class="inside">
									
										<form method="post" action="<?php admin_url( 'admin.php?page=theme-settings' ); ?>" class="ajax-form">
										
											<?php
											
												wp_nonce_field( "settings-page" );
											
											?>
											
											<table>
											
												<tr>
													<td class="option-left">
													
														<h4>Information Title</h4>
														
														<input type="text" id="contact_inf_title" name="contact_inf_title" style="width: 100%;" value="<?php echo stripcslashes( $contact_inf_title ); ?>" />
													
													</td>
													
													<td class="option-right">
													
														Information area is placed above of the Google map. Enter a text to display information title on the contact page.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Information Text</h4>
														
														<textarea id="contact_inf_text" name="contact_inf_text" style="outline: none; width: 100%;" rows="6" cols="50"><?php echo stripcslashes( $contact_inf_text ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Enter a text to display information text on the contact page.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Google Map URL</h4>
														
														<input type="text" id="google_map_url" name="google_map_url" class="code2" style="width: 100%;" value="<?php echo stripcslashes( $google_map_url ); ?>" />
													
													</td>
													
													<td class="option-right">
													
														Don't enter an iframe code, this is an iframe. So just enter an iframe src value to show custom place on the map. <a target="_blank" href="<?php echo get_template_directory_uri() . '/admin/help-google-map-url.jpg'; ?>" style="text-decoration: none;">Help</a>
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Google Map Height</h4>
														
														<input type="text" id="google_map_height" name="google_map_height" maxlength="6" size="6" value="<?php echo stripcslashes( $google_map_height ); ?>" />
														
														<span style="display: inline-block; font-size: 11px; color: #666666;">Default: 200</span>
													
													</td>
													
													<td class="option-right">
													
														Change height value of the Google Map. Just enter integer.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="hide_google_map" name="hide_google_map" <?php if ($hide_google_map) { echo 'checked="checked"'; } ?> value="hide_google_map" /> Disable Google Map
														
														</label>
													
													</td>
													
													<td class="option-right">
														
														Disable Google Map.
													
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Contact Form Email Address</h4>
														
														<input type="text" id="contact_form_email" name="contact_form_email" style="width: 100%;" value="<?php echo $contact_form_email; ?>" />
													
													</td>
													
													<td class="option-right">
													
														Enter which email address will be sent from contact form.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Contact Form Send Button Color</h4>
														
														<select id="contact_form_button_color" name="contact_form_button_color" style="width: 100%;">
														
															<option <?php  if ( $contact_form_button_color == "White" ) { echo 'selected="selected"'; } ?>>White</option>
															
															<option <?php  if ( $contact_form_button_color == "Blue" ) { echo 'selected="selected"'; } ?>>Blue</option>
															
															<option <?php  if ( $contact_form_button_color == "Sky Blue" ) { echo 'selected="selected"'; } ?>>Sky Blue</option>
															
															<option <?php  if ( $contact_form_button_color == "Green" ) { echo 'selected="selected"'; } ?>>Green</option>
															
															<option <?php  if ( $contact_form_button_color == "Yellow" ) { echo 'selected="selected"'; } ?>>Yellow</option>
															
															<option <?php  if ( $contact_form_button_color == "Red" ) { echo 'selected="selected"'; } ?>>Red</option>
															
														</select>
													
													</td>
													
													<td class="option-right">
													
														Select contact form send button color.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="hide_contact_form" name="hide_contact_form" <?php if ($hide_contact_form) { echo 'checked="checked"'; } ?> value="hide_contact_form" /> Disable Contact Form
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable contact form.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="enable_contact_form7_styling" name="enable_contact_form7_styling" <?php if ( $enable_contact_form7_styling ) { echo 'checked="checked"'; } ?> value="enable_contact_form7_styling" /> Enable Contact Form 7 Styling
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Enable contact form 7 plugin styling. <a target="_blank" href="<?php echo get_template_directory_uri() . '/admin/help-contact-form-7-plugin.txt'; ?>" style="text-decoration: none;">Help for Contact Form 7 plugin usage</a>
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<label>
														
															<input type="checkbox" id="hide_contact_search" name="hide_contact_search" <?php if ($hide_contact_search) { echo 'checked="checked"'; } ?> value="hide_contact_search" /> Disable Search Module
														
														</label>
													
													</td>
													
													<td class="option-right">
													
														Disable search module.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Contact Us Title</h4>
														
														<input type="text" id="contact_us_title" name="contact_us_title" style="width: 100%;" value="<?php echo stripcslashes( $contact_us_title ); ?>" />
													
													</td>
													
													<td class="option-right">
													
														This informations placed on the right sidebar of the contact page. Enter a custom text or leave blank for default.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Address</h4>
														
														<textarea id="contact_address" name="contact_address" style="outline: none; width: 100%;" rows="4" cols="50"><?php echo stripcslashes( $contact_address ); ?></textarea>
														
													</td>
													
													<td class="option-right">
													
														Enter a text for address information.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Telephone</h4>
													
														<textarea id="contact_tel" name="contact_tel" style="outline: none; width: 100%;" rows="4" cols="50"><?php echo stripcslashes( $contact_tel ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Enter a text for telephone information.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Fax</h4>
														
														<textarea id="contact_fax" name="contact_fax" style="outline: none; width: 100%;" rows="4" cols="50"><?php echo stripcslashes( $contact_fax ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Enter a text for fax information.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<h4>Email</h4>
														
														<textarea id="contact_email" name="contact_email" style="outline: none; width: 100%;" rows="4" cols="50"><?php echo stripcslashes( $contact_email ); ?></textarea>
													
													</td>
													
													<td class="option-right">
													
														Enter a text for e-mail information.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<input type="submit" name="submit" class="button-primary" value="Save Settings" />
														
														<input type="hidden" name="settings-submit" value="Y" />
													
													</td>
													
													<td class="option-right">
													
														Save changes.
														
													</td>
												</tr>
												
											</table>
											
										</form>
										
									</div>
									<!-- end .inside -->
									
								</div>
								<!-- end .postbox -->
								
							<?php
							
							break;
								
							case 'sidebar' :
							
								if ( esc_attr( @$_GET['saved'] ) == 'true' )
								{
									$no_sidebar_name = get_option( 'no_sidebar_name' );
									
									if ( $no_sidebar_name == "" )
									{
										echo '<div class="alert-success" title="Click to close"><p><strong>Enter a text for new sidebar name.</strong></p></div>';
									}
									else
									{
										echo '<div class="alert-success" title="Click to close"><p><strong>Created.</strong></p></div>';
									}
									// end if $no_sidebar_name else not
									
								}
								// end if saved == true
							?>
								<div class="postbox">
								
									<div class="inside">
									
										<form method="post" action="<?php admin_url( 'admin.php?page=theme-settings' ); ?>">
										
											<?php
											
												wp_nonce_field( "settings-page" );
												
											?>
											
											<table>
											
												<tr>
													<td class="option-left">
													
														<h4>New Sidebar</h4>
														
														<input type="text" id="new_sidebar_name" name="new_sidebar_name" required="required" style="width: 100%;" value="" />
													
													</td>
													
													<td class="option-right">
													
														Enter a text for new sidebar name.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
														
														<h4>Sidebars</h4>
														
														<select id="sidebars" name="sidebars" style="width: 100%;" size="10">
														
															<?php
															
																$sidebars_with_commas = get_option( 'sidebars_with_commas' );
															
																$sidebars = preg_split("/[\s]*[,][\s]*/", $sidebars_with_commas);

																foreach ( $sidebars as $sidebar_name )
																{
																	echo '<option>' . $sidebar_name . '</option>';
																}

															?>
														
														</select>
														
													</td>
													
													<td class="option-right">
													
														New sidebar name must be different from name of files in this list.
														
													</td>
												</tr>
												
												<tr>
													<td class="option-left">
													
														<input type="submit" name="submit" class="button-primary" value="Create" />
														
														<input type="hidden" name="settings-submit" value="Y" />
													
													</td>
													
													<td class="option-right">
													
														Create new sidebar.
														
													</td>
												</tr>
												
											</table>
											
										</form>
										
									</div>
									<!-- end .inside -->
									
								</div>
								<!-- end .postbox -->
								
							<?php
							
								break;
							
						}
						// end tab content
					}
					// end settings page
				
				?>
				
			</div>
			<!-- end #poststuff -->

		</div>
		<!-- end .wrap2 -->

<?php

	}
	
/* ------------------------------------------------------------------------------------------------------------------------------------------------------ */
	
	function save_settings()
	{
		global $pagenow;
		
		if ( $pagenow == 'admin.php' && $_GET['page'] == 'theme-settings' )
		{
			if ( isset ( $_GET['tab'] ) )
			{
				$tab = $_GET['tab'];
			}
			else
			{
				$tab = 'general';
			}

			switch ( $tab )
			{
				case 'general' :
				
					update_option( "image_logo", esc_attr( $_POST['image_logo'] ) );
					update_option( "use_original_size_of_logo", esc_attr( $_POST['use_original_size_of_logo'] ) );
					
					update_option( "text_logo", esc_attr( $_POST['text_logo'] ) );
					update_option( "enable_text_logo", esc_attr( $_POST['enable_text_logo'] ) );
					
					update_option( "text_slogan", esc_attr( $_POST['text_slogan'] ) );
					update_option( "enable_text_slogan", esc_attr( $_POST['enable_text_slogan'] ) );
					
					update_option( "login_logo", esc_attr( $_POST['login_logo'] ) );
					update_option( "hide_login_logo", esc_attr( $_POST['hide_login_logo'] ) );
					
					update_option( "favicon", esc_attr( $_POST['favicon'] ) );
					update_option( "apple_touch_icon", esc_attr( $_POST['apple_touch_icon'] ) );
					
					update_option( "site_background_image", esc_attr( $_POST['site_background_image'] ) );
					update_option( "header_background_image", esc_attr( $_POST['header_background_image'] ) );
					update_option( "footer_background_image", esc_attr( $_POST['footer_background_image'] ) );
					update_option( "copyright_text", $_POST['copyright_text'] );
					
				break;
					
				case 'style' :
				
					update_option( "theme_style", esc_attr( $_POST['theme_style'] ) );
					
					update_option( "site_background_color", esc_attr( $_POST['site_background_color'] ) );
					update_option( "header_background_color", esc_attr( $_POST['header_background_color'] ) );
					update_option( "footer_background_color", esc_attr( $_POST['footer_background_color'] ) );
					
					update_option( "site_text_color", esc_attr( $_POST['site_text_color'] ) );
					
					update_option( "site_link_color", esc_attr( $_POST['site_link_color'] ) );
					update_option( "site_link_hover_color", esc_attr( $_POST['site_link_hover_color'] ) );
					update_option( "site_link_hover_bg_color", esc_attr( $_POST['site_link_hover_bg_color'] ) );
					
					update_option( "text_selection_color", esc_attr( $_POST['text_selection_color'] ) );
					update_option( "text_selection_bg_color", esc_attr( $_POST['text_selection_bg_color'] ) );
					
					update_option( "social_media_hover_color", esc_attr( $_POST['social_media_hover_color'] ) );
					update_option( "header_border_color", esc_attr( $_POST['header_border_color'] ) );
					update_option( "tagline_border_color", esc_attr( $_POST['tagline_border_color'] ) );
					update_option( "footer_border_color", esc_attr( $_POST['footer_border_color'] ) );
					
					update_option( "launch_project_button_color", esc_attr( $_POST['launch_project_button_color'] ) );
					update_option( "hide_gallery_arrows", esc_attr( $_POST['hide_gallery_arrows'] ) );
					update_option( "disable_gototop_link", esc_attr( $_POST['disable_gototop_link'] ) );
					
					update_option( "crop_width_portfolio_page", esc_attr( $_POST['crop_width_portfolio_page'] ) );
					update_option( "crop_height_portfolio_page", esc_attr( $_POST['crop_height_portfolio_page'] ) );
					update_option( "no_crop_portfolio_page", esc_attr( $_POST['no_crop_portfolio_page'] ) );
					
					update_option( "crop_width_latest_projects", esc_attr( $_POST['crop_width_latest_projects'] ) );
					update_option( "crop_height_latest_projects", esc_attr( $_POST['crop_height_latest_projects'] ) );
					update_option( "no_crop_latest_projects", esc_attr( $_POST['no_crop_latest_projects'] ) );
					
					update_option( "crop_width_latest_posts", esc_attr( $_POST['crop_width_latest_posts'] ) );
					update_option( "crop_height_latest_posts", esc_attr( $_POST['crop_height_latest_posts'] ) );
					update_option( "no_crop_latest_posts", esc_attr( $_POST['no_crop_latest_posts'] ) );
					
					update_option( "crop_width_blog_page", esc_attr( $_POST['crop_width_blog_page'] ) );
					update_option( "crop_height_blog_page", esc_attr( $_POST['crop_height_blog_page'] ) );
					update_option( "no_crop_blog_page", esc_attr( $_POST['no_crop_blog_page'] ) );
					
					update_option( "crop_width_blog_page2", esc_attr( $_POST['crop_width_blog_page2'] ) );
					update_option( "crop_height_blog_page2", esc_attr( $_POST['crop_height_blog_page2'] ) );
					update_option( "no_crop_blog_page2", esc_attr( $_POST['no_crop_blog_page2'] ) );
					
					update_option("back_to_portfolio", $_POST['back_to_portfolio'] );
					
					update_option("see_project_details_text", $_POST['see_project_details_text'] );
					
					update_option( "custom_css", $_POST['custom_css'] );
					update_option( "external_css", $_POST['external_css'] );
					
				break;
					
				case 'seo' :
				
					update_option( "site_description", $_POST['site_description'] );
					update_option( "site_keywords", $_POST['site_keywords'] );
					update_option( "site_author", $_POST['site_author'] );
					
					update_option( "facebook_share_title", $_POST['facebook_share_title'] );
					update_option( "facebook_share_description", $_POST['facebook_share_description'] );
					update_option( "facebook_share_thumb_img", $_POST['facebook_share_thumb_img'] );
					
					update_option( "tracking_code_head", $_POST['tracking_code_head'] );
					update_option( "tracking_code", $_POST['tracking_code'] );
					
				break;
				
				case 'home' :
				
					update_option( "tagline_text", $_POST['tagline_text'] );
					
					update_option( "slider_type", esc_attr($_POST['slider_type']));
					update_option( "slide_animation_type", esc_attr( $_POST['slide_animation_type'] ) );
					update_option( "slide_animation_speed", esc_attr( $_POST['slide_animation_speed'] ) );
					update_option( "slide_waiting_time", esc_attr( $_POST['slide_waiting_time'] ) );
					
					update_option( "enable_video_in_slider_area", esc_attr( $_POST['enable_video_in_slider_area'] ) );
					update_option( "video_code_in_slider_area", $_POST['video_code_in_slider_area'] );
					
					update_option( "cta_title", $_POST['cta_title'] );
					update_option( "cta_text", $_POST['cta_text'] );
					update_option( "cta_button_text", $_POST['cta_button_text']);
					update_option( "cta_button_url", esc_attr($_POST['cta_button_url']));
					update_option( "cta_button_color", esc_attr($_POST['cta_button_color']));
					update_option( "hide_cta_info", esc_attr($_POST['hide_cta_info']));
					
					update_option( "latest_proj_title", esc_attr($_POST['latest_proj_title']));
					update_option( "latest_proj_text", $_POST['latest_proj_text']);
					update_option( "hide_latest_proj", esc_attr($_POST['hide_latest_proj']));
					
					update_option( "feat_area_text", $_POST['feat_area_text']);
					update_option( "feat_area_but_text", $_POST['feat_area_but_text']);
					update_option( "feat_area_but_url", esc_attr($_POST['feat_area_but_url']));
					update_option( "feat_area_but_col", esc_attr($_POST['feat_area_but_col']));
					update_option( "hide_feat_area", esc_attr($_POST['hide_feat_area']));
					
					update_option( "latest_blog_title", esc_attr($_POST['latest_blog_title']));
					update_option( "latest_blog_text", $_POST['latest_blog_text'] );
					update_option( "hide_latest_blog", esc_attr($_POST['hide_latest_blog']));
					
					update_option( "clients_title", esc_attr($_POST['clients_title']));
					update_option( "clients_sub_title", esc_attr($_POST['clients_sub_title']));
					update_option( "hide_clients", esc_attr($_POST['hide_clients']));
					
					update_option( "client_1_image", esc_attr($_POST['client_1_image']));
					update_option( "client_2_image", esc_attr($_POST['client_2_image']));
					update_option( "client_3_image", esc_attr($_POST['client_3_image']));
					update_option( "client_4_image", esc_attr($_POST['client_4_image']));
					update_option( "client_5_image", esc_attr($_POST['client_5_image']));
					update_option( "client_6_image", esc_attr($_POST['client_6_image']));
					
					update_option( "client_1_url", esc_attr($_POST['client_1_url']));
					update_option( "client_2_url", esc_attr($_POST['client_2_url']));
					update_option( "client_3_url", esc_attr($_POST['client_3_url']));
					update_option( "client_4_url", esc_attr($_POST['client_4_url']));
					update_option( "client_5_url", esc_attr($_POST['client_5_url']));
					update_option( "client_6_url", esc_attr($_POST['client_6_url']));
					
				break;
					
				case 'blog' :
				
					update_option( "blog_layout_type", esc_attr( $_POST['blog_layout_type'] ) );
					update_option( "enable_slider_on_blog", esc_attr( $_POST['enable_slider_on_blog'] ) );
					update_option( "full_width_blog", esc_attr( $_POST['full_width_blog'] ) );
					update_option( "full_width_post", esc_attr( $_POST['full_width_post'] ) );
					
					update_option( "readmore_btn_color_on_blog", esc_attr( $_POST['readmore_btn_color_on_blog'] ) );
					update_option( "readmore_btn_color_on_home", esc_attr( $_POST['readmore_btn_color_on_home'] ) );
					update_option( "readmore_btn_color_on_category", esc_attr( $_POST['readmore_btn_color_on_category'] ) );
					update_option( "readmore_btn_color_on_tag", esc_attr( $_POST['readmore_btn_color_on_tag'] ) );
					update_option( "readmore_btn_color_on_author", esc_attr( $_POST['readmore_btn_color_on_author'] ) );
					update_option( "comment_form_btn_color", esc_attr( $_POST['comment_form_btn_color'] ) );
					
					update_option( "hide_about_author", esc_attr( $_POST['hide_about_author'] ) );
					update_option( "hide_post_counts", esc_attr( $_POST['hide_post_counts'] ) );
					update_option( "the_excerpt_on_off", esc_attr( $_POST['the_excerpt_on_off'] ) );
					update_option( "enable_edit_link", esc_attr( $_POST['enable_edit_link'] ) );
					
					update_option( "change_prev_next_post_links_loc", esc_attr( $_POST['change_prev_next_post_links_loc'] ) );
					update_option( "disable_prev_next_post_links", esc_attr( $_POST['disable_prev_next_post_links'] ) );
					
					update_option( "change_prev_next_portfolio_item_links_loc", esc_attr( $_POST['change_prev_next_portfolio_item_links_loc'] ) );
					update_option( "disable_prev_next_portfolio_item_links", esc_attr( $_POST['disable_prev_next_portfolio_item_links'] ) );
					
					update_option( "hide_post_infos_on_blog", esc_attr( $_POST['hide_post_infos_on_blog'] ) );
					update_option( "disable_subtitle_in_blog_single", esc_attr( $_POST['disable_subtitle_in_blog_single'] ) );
					
					update_option( "disable_blog_search", esc_attr( $_POST['disable_blog_search'] ) );
					update_option( "disable_page_search", esc_attr( $_POST['disable_page_search'] ) );
					update_option( "disable_full_width_page_search", esc_attr( $_POST['disable_full_width_page_search'] ) );
					update_option( "disable_portfolio_search", esc_attr( $_POST['disable_portfolio_search'] ) );
					update_option( "enable_header_search", esc_attr( $_POST['enable_header_search'] ) );
					
					update_option( "disable_feat_img_post_single", esc_attr( $_POST['disable_feat_img_post_single'] ) );
					update_option( "disable_feat_img_in_rss", esc_attr( $_POST['disable_feat_img_in_rss'] ) );
					
				break;
				
				case 'social-media' :
				
					update_option( "social_facebook", esc_attr( $_POST['social_facebook'] ) );
					update_option( "social_twitter", esc_attr( $_POST['social_twitter'] ) );
					update_option( "social_google", esc_attr( $_POST['social_google'] ) );
					update_option( "social_tumblr", esc_attr( $_POST['social_tumblr'] ) );
					update_option( "social_pinterest", esc_attr( $_POST['social_pinterest'] ) );
					update_option( "social_linkedin", esc_attr( $_POST['social_linkedin'] ) );
					update_option( "social_skype", esc_attr( $_POST['social_skype'] ) );
					update_option( "social_flickr", esc_attr( $_POST['social_flickr'] ) );
					update_option( "social_picasa", esc_attr( $_POST['social_picasa'] ) );
					update_option( "social_dribbble", esc_attr( $_POST['social_dribbble'] ) );
					update_option( "social_forrst", esc_attr( $_POST['social_forrst'] ) );
					update_option( "social_lastfm", esc_attr( $_POST['social_lastfm'] ) );
					update_option( "social_vimeo", esc_attr( $_POST['social_vimeo'] ) );
					update_option( "social_youtube", esc_attr( $_POST['social_youtube'] ) );
					update_option( "social_rss", esc_attr( $_POST['social_rss'] ) );
					
				break;
					
				case 'contact' :
				
					update_option( "contact_inf_title", esc_attr( $_POST['contact_inf_title'] ) );
					update_option( "contact_inf_text", $_POST['contact_inf_text'] );
					
					update_option( "google_map_url", esc_attr( $_POST['google_map_url'] ) );
					update_option( "google_map_height", esc_attr( $_POST['google_map_height'] ) );
					update_option( "hide_google_map", esc_attr( $_POST['hide_google_map'] ) );
					
					update_option( "contact_form_email", esc_attr( $_POST['contact_form_email'] ) );
					update_option( "contact_form_button_color", esc_attr( $_POST['contact_form_button_color'] ) );
					update_option( "hide_contact_form", esc_attr( $_POST['hide_contact_form'] ) );
					update_option( "enable_contact_form7_styling", esc_attr( $_POST['enable_contact_form7_styling'] ) );
					
					update_option( "hide_contact_search", esc_attr( $_POST['hide_contact_search'] ) );
					
					update_option( "contact_us_title", esc_attr( $_POST['contact_us_title'] ) );
					
					update_option( "contact_address", $_POST['contact_address'] );
					update_option( "contact_tel", $_POST['contact_tel'] );
					update_option( "contact_fax", $_POST['contact_fax'] );
					update_option( "contact_email", $_POST['contact_email'] );
					
				break;
				
				case 'sidebar' :
				
					update_option( "no_sidebar_name", esc_attr( $_POST['new_sidebar_name'] ) );
					
					if ( esc_attr( $_POST['new_sidebar_name'] ) != '' )
					{
						if ( get_option( 'sidebars_with_commas' ) == '' )
						{
							update_option( "sidebars_with_commas", esc_attr( $_POST['new_sidebar_name'] ) );
						}
						else
						{
							update_option( "sidebars_with_commas", get_option( 'sidebars_with_commas' ) . ',' . esc_attr( $_POST['new_sidebar_name'] ) );
						}
					}
				
				break;
			}
		}
	}
	// end save_settings

/* ------------------------------------------------------------------------------------------------------------------------------------------------------ */

	function load_settings_page()
	{
		if ( @$_POST["settings-submit"] == 'Y' )
		{
			check_admin_referer( "settings-page" );
			
			save_settings();
			
			$url_parameters = isset( $_GET['tab'] ) ? 'tab=' . $_GET['tab'] . '&saved=true' : 'saved=true';
			
			wp_redirect( admin_url( 'admin.php?page=theme-settings&' . $url_parameters ) );
			
			exit;
		}
	}

/* ------------------------------------------------------------------------------------------------------------------------------------------------------ */

	function add_admin_menu()
	{
		$settings_page = add_menu_page( 'Theme Settings',
										'Theme Settings',
										'edit_theme_options',
										'theme-settings',
										'theme_settings_page',
										get_template_directory_uri() . '/admin/theme-menu-icon.png' );
		
		add_action( "load-{$settings_page}", 'load_settings_page' );
	}

	add_action( 'admin_menu', 'add_admin_menu' );

/* ------------------------------------------------------------------------------------------------------------------------------------------------------ */

	/*
	
	function theme_documentation_page()
	{
		echo '<iframe id="preview-frame" name="preview-frame" frameborder="0" noresize="noresize" style="height: 650px; width: 100%;" src="http://themes.pixelwars.org/responsy-wp-documentation/index.html"></iframe>';
	}
	
	function add_admin_submenu()
	{
		add_submenu_page( 'theme-settings', 'Theme Settings', 'Theme Settings', 'manage_options', 'theme-settings', 'theme_settings_page' );
		add_submenu_page( 'theme-settings', 'Documentation', 'Documentation', 'manage_options', 'documentation', 'theme_documentation_page' );
	}
	
	add_action('admin_menu', 'add_admin_submenu');
	
	*/


/* ------------------------------------------------------------------------------------------------------------------------------------------------------ */

?>